//
//  WKBaseViewController.m
//  ourToken
//
//  Created by wakeup on 2018/5/29.
//  Copyright © 2018年 ourtoken. All rights reserved.
//

#import "WKBaseViewController.h"

@interface WKBaseViewController ()

@end

@implementation WKBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBarHidden = YES;
    //隐藏导航栏第三方
    self.fd_prefersNavigationBarHidden = YES;
}

- (void)setNavigationView {
    [self.view addSubview:self.navigationView];
}

- (WKNavigationView *)navigationView {
    if (_navigationView == nil) {
        _navigationView = [[WKNavigationView alloc] initWithFrame:CGRectMake(0, 0, AppManager.width, AppManager.navigationHeight)];
        _navigationView.delegate = self;
        [_navigationView.topLeftButton setImage:[UIImage imageNamed:@"箭头"] forState:UIControlStateNormal];
        _navigationView.topRightButton.hidden = YES;
    }
    
    return _navigationView;
}

#pragma mark - <WKNavigationViewDelegate>
- (void)leftButtonClick:(UIButton *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)rightButtonClick:(UIButton *)sender {
    
}

@end
